package com.code.cheney.shiro.dao;

import org.springframework.stereotype.Repository;

import com.code.cheney.shiro.entity.Role;

/**
 * 
 * Project: shiro Class: RoleDao Description:
 * 
 * @author: Cheney
 * @Date 2016年6月30日 下午9:26:31
 * @version 1.0
 * 
 */
@Repository
public interface RoleDao {

	public Long createRole(Role role);

	public void deleteRole(Long roleId);
	
	public void deleteUserRole(Long roleId);

	public void correlationRoles(Long roleId, Long permissionId);

	public void uncorrelationRoles(Long roleId, Long permissionId);
	
	boolean exists(Long roleId, Long permissionId);
}
